<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据结构和算法（Golang实现）</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta charset="UTF-8">
    <link rel="shortcut icon" href="./picture/b.jpeg"/>
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css">

</head>
<body>
<div id="app">正在火速加载中</div>
<!--<script>-->
<!--    if (typeof navigator.serviceWorker !== 'undefined') {-->
<!--        navigator.serviceWorker.register('sw.js')-->
<!--    }-->
<!--</script>-->
<script>
    window.$docsify = {
        name: '数据结构和算法',
        repo: 'https://github.com/hunterhug/goa.c',
        loadSidebar: true,
        alias: {
            '/.*/_sidebar.md': '/_sidebar.md',
            '/.*/_navbar.md': '/_navbar.md'
        },
        loadNavbar: true,
        // coverpage: true,
        // onlyCover: true,
        // subMaxLevel: 2,
        auto2top: true,
        count: {
            countable: true,
            fontsize: '0.9em',
            color: 'rgb(90,90,90)',
            language: 'chinese'
        },
        ga: 'UA-109725015-1',
        formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}',
        plugins: [
            function (hook, vm) {
                var footer = [
                    '<hr/>',
                    '<footer>',
                    '<p style="text-align: center"><img src="./picture/weixin.png"></p>',
                    '<p style="text-align: center"><span>微信扫一扫送一根辣条鼓励作者产出更好的文章吧～ PS: 如果你想参与写作的话可以直接提<a href="https://github.com/hunterhug/goa.c/pulls">PR</a></span></p>',
                    '</footer>'
                ].join('');


                hook.beforeEach(function (html) {
                    var url =
                        'https://github.com/hunterhug/goa.c/blob/master/' +
                        vm.route.file;
                    var editHtml = '[📝 修改文章](' + url + ')\n';

                    return (
                        editHtml +
                        html
                    );
                });

                hook.afterEach(function (html) {
                    return html + footer;
                });
            }
        ],
        pagination: {
            previousText: '上一篇文章',
            nextText: '下一篇文章',
            crossChapter: true,
            crossChapterText: true,
        },
        // toc: {
        //     tocMaxLevel: 4,
        //     target: 'h2, h3, h4, h5'
        // },
    }
</script>


<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<!--<script src="//unpkg.com/docsify-plugin-toc"></script>-->

<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css"> -->
<!--
     <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
     <script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
-->

<link rel="stylesheet" href="./picture/static/gitalk/dist/gitalk.css">
<script src="./picture/static/gitalk/plugins.gitalk.min.js"></script>
<script src="./picture/static/gitalk/dist/gitalk.js"></script>
<script src="./picture/static/md5.js"></script>

<script>
    // var prefix = location.protocol + "//" +location.host + location.pathname
    // console.log(prefix)
    // console.log(location.href)
    // console.log(location.href.replace(prefix,""))
    // console.log(location.hash)
    const gitalk = new Gitalk({
        clientID: "88bd6a753142024b3e6c",
        clientSecret: "edb4b5730d40ce1b578d571d72a8b17585ccbafd",
        repo: "goa.c",
        owner: "hunterhug",
        admin: [
            "hunterhug"
        ],
        // id: decodeURI(location.href.replace(location.protocol + "//" +location.host + location.pathname,"")),
        createIssueManually: false,
        distractionFreeMode: true
    })
</script>

<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-go.min.js"></script>
</body>
</html>
